<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TNamedValue类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_t_named_value-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TNamedValue类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a770357506824d289eda7157bbe227cbf"><td class="memItemLeft" align="right" valign="top"><a id="a770357506824d289eda7157bbe227cbf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TNamedValue</b> (named_value_t *nativeObj)</td></tr>
<tr class="separator:a770357506824d289eda7157bbe227cbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a812d3beecd0293391b31009ccbb9bc8d"><td class="memItemLeft" align="right" valign="top"><a id="a812d3beecd0293391b31009ccbb9bc8d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TNamedValue</b> (const named_value_t *nativeObj)</td></tr>
<tr class="separator:a812d3beecd0293391b31009ccbb9bc8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7734db3f4e6900a3ac030d47bec92511"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_named_value.html#a7734db3f4e6900a3ac030d47bec92511">SetName</a> (const char *name)</td></tr>
<tr class="separator:a7734db3f4e6900a3ac030d47bec92511"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01156f5b1cdb68bdb7d58e15e0a41b52"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_named_value.html#a01156f5b1cdb68bdb7d58e15e0a41b52">SetValue</a> (<a class="el" href="class_t_value.html">TValue</a> &amp;value)</td></tr>
<tr class="separator:a01156f5b1cdb68bdb7d58e15e0a41b52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77bddfe9c7ba6560d67fd36090286244"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_t_value.html">TValue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_named_value.html#a77bddfe9c7ba6560d67fd36090286244">GetValue</a> ()</td></tr>
<tr class="separator:a77bddfe9c7ba6560d67fd36090286244"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a498972f05e46e896ea81920bd73dc2ac"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_named_value.html#a498972f05e46e896ea81920bd73dc2ac">Destroy</a> ()</td></tr>
<tr class="separator:a498972f05e46e896ea81920bd73dc2ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a235b288214d5a202ff8921c8eb11f922"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_named_value.html#a235b288214d5a202ff8921c8eb11f922">GetName</a> () const</td></tr>
<tr class="separator:a235b288214d5a202ff8921c8eb11f922"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ac0ca243db3aa931e78ff3c2687f65e52"><td class="memItemLeft" align="right" valign="top"><a id="ac0ca243db3aa931e78ff3c2687f65e52"></a>
static <a class="el" href="class_t_named_value.html">TNamedValue</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (named_value_t *nativeObj)</td></tr>
<tr class="separator:ac0ca243db3aa931e78ff3c2687f65e52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c73db1369c2b92dc302795a2fdc0c9c"><td class="memItemLeft" align="right" valign="top"><a id="a5c73db1369c2b92dc302795a2fdc0c9c"></a>
static <a class="el" href="class_t_named_value.html">TNamedValue</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const named_value_t *nativeObj)</td></tr>
<tr class="separator:a5c73db1369c2b92dc302795a2fdc0c9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a655c1643e833ecec84673e26a73b55e3"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_t_named_value.html">TNamedValue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_named_value.html#a655c1643e833ecec84673e26a73b55e3">Create</a> ()</td></tr>
<tr class="separator:a655c1643e833ecec84673e26a73b55e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a8d149037e92d1314841e4f08049a4d11"><td class="memItemLeft" align="right" valign="top"><a id="a8d149037e92d1314841e4f08049a4d11"></a>
named_value_t *&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a8d149037e92d1314841e4f08049a4d11"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>命名的值。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a655c1643e833ecec84673e26a73b55e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a655c1643e833ecec84673e26a73b55e3">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_named_value.html">TNamedValue</a> TNamedValue::Create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建named_value对象。</p>
<dl class="section return"><dt>返回</dt><dd>返回named_value对象。 </dd></dl>

</div>
</div>
<a id="a498972f05e46e896ea81920bd73dc2ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a498972f05e46e896ea81920bd73dc2ac">&#9670;&nbsp;</a></span>Destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TNamedValue::Destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁named_value对象。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a235b288214d5a202ff8921c8eb11f922"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a235b288214d5a202ff8921c8eb11f922">&#9670;&nbsp;</a></span>GetName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TNamedValue::GetName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>名称。 </p>

</div>
</div>
<a id="a77bddfe9c7ba6560d67fd36090286244"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77bddfe9c7ba6560d67fd36090286244">&#9670;&nbsp;</a></span>GetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_value.html">TValue</a> TNamedValue::GetValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取值对象(主要给脚本语言使用)。</p>
<dl class="section return"><dt>返回</dt><dd>返回值对象。 </dd></dl>

</div>
</div>
<a id="a7734db3f4e6900a3ac030d47bec92511"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7734db3f4e6900a3ac030d47bec92511">&#9670;&nbsp;</a></span>SetName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TNamedValue::SetName </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置名称。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a01156f5b1cdb68bdb7d58e15e0a41b52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01156f5b1cdb68bdb7d58e15e0a41b52">&#9670;&nbsp;</a></span>SetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TNamedValue::SetValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_value.html">TValue</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
